import { FC } from 'react';
import { Button } from 'antd';
import { TableActionClick } from '../interface';

export const ClickAction: FC<TableActionClick> = ({ text, onClick, disable, loading }) => {
  return (
    <Button type="link" size="small" loading={loading} disabled={disable} onClick={onClick}>
      {text}
    </Button>
  );
};
